#include<stdio.h>
#define MAX 1024
#define NONE_FLUSH (1<<0)
#define FULL_FLUSH (1<<1)
#define LINE_FLUSH (1<<2)
typedef struct IO_FILE
{
	int fileno; // 文件描述符
	int flag; // 
	char outbuffer[MAX];
	int bufferlen;
	int flush_method;
}MyFile;

MyFile* MyFopen(const char* path,const char*mode);
void MyFclose(MyFile* file);
void Myfflush(MyFile* file);
int MyWrite(MyFile* file,void* str,int len);
